<?php

return [
    // 默认磁盘
    'default' => 'local',
    // 磁盘列表
    'disks'   => [
        'local' => [
            'root' => app()->getRootPath() . 'public/storage',//磁盘路径
            'url' => '/storage',//磁盘路径对应的外部URL路径
            'visibility' => 'public', //可见性
            'domain' => '',
        ],
        'ali' => [
            'driver' => \app\extend\adapter\AliAdapter::class,
            'accessId' => '',
            'accessSecret' => '',
            'bucket' => '',
            'endpoint' => '',
            'domain' => '',
            'schema' => 'http://',
            'isCName' => false,
            // 'timeout'        => 3600,
            // 'connectTimeout' => 10,
            // 'token'          => '',
        ],
        'qiniu' => [
            'driver' => \app\extend\adapter\QiniuAdapter::class,
            'accessKey' => '',
            'secretKey' => '',
            'bucket' => '',
            'domain' => '',
            'schema' => 'http://',
        ],
    ],
    // 文件配置
    'file' => [
        'suffix' => '.jpg,.png,.bmp,.jpeg,.gif,.zip,.rar,.xls,.xlsx,.mp3,.mp4',
        'maxSize' => '20', //最大上传20M
    ]
];
